<?php

/**
 * Author: Jesse
 * Email : jessedev@163.com
 * Date: 2024/6/14 23:50
 * FileName: Request.php
 * DESC: The Relentless Pursuit of Perfection.
 */

namespace Common\Kernel\Http;

use Hyperf\HttpServer\Request as HyperfRequest;

/**
 * 请求类
 */
class Request extends HyperfRequest
{
    /**
     * 获取客户IP
     *
     * @return string
     */
    public function getClientIp(): string
    {
        return $this->getHeaderLine('X-Request-Client-Ip');
    }
}